import {request} from '@/utils/request';

/**
 *构造预警规则
 */
export function buildEarlyRuleApi(data: any) {
  return request({
      url: '/interface/device/early/rule/buildEarlyRule',
      method: 'post',
      data,
    },
    {
      isDataDirectly: false,
    });
}

/**
 *构造预警规则
 */
export function findEarlyRuleApi(data: any) {
  return request({
      url: '/interface/device/early/rule/findEarlyRule',
      method: 'post',
      data,
    },
    {
      isDataDirectly: true,
    });
}
